7.5
HIGH CVSS 3.1
CVE-2026-5172
CVE-2026-5172
Description

A buffer overflow in dnsmasq’s extract_addresses() function allows an attacker to trigger a heap out-of-bounds read and crash by exploiting a malformed DNS response, enabling extract_name() to advance the pointer past the record’s end.

INFO

Published Date :

May 11, 2026, 6:16 p.m.

Last Modified :

June 30, 2026, 3:21 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-5172 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Pi-hole ftldns
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
Solution
Update dnsmasq to fix heap out-of-bounds read and crash vulnerability.
  • Update dnsmasq to the latest version.
  • Apply security patches provided by the vendor.
  • Restart the dnsmasq service after updates.
Public PoC/Exploit Available at Github

CVE-2026-5172 has a 3 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-5172 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-5172 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Automated defect verification tool for 6 dnsmasq CVEs (CVE-2026-2291, 4890, 4891, 4892, 4893, 5172)

Python Shell

Updated: 1 month ago
0 stars 0 fork 0 watcher
Born at : June 1, 2026, 1:24 a.m. This repo has been linked 6 different CVEs too.

Collection of utility scripts and tools for network device management, monitoring, and automation

Shell Python

Updated: 2 weeks, 5 days ago
0 stars 0 fork 0 watcher
Born at : April 20, 2026, 12:56 a.m. This repo has been linked 6 different CVEs too.

📡 PoC auto collect from GitHub. ⚠️ Be careful Malware.

security cve exploit poc vulnerability

Updated: 3 weeks, 6 days ago
7810 stars 1261 fork 1261 watcher
Born at : Dec. 8, 2019, 1:03 p.m. This repo has been linked 718 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-5172 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-5172 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 0b0ca135-0b70-47e7-9f44-1890c2a1c46c

    Jun. 30, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:/o:redhat:enterprise_linux:10.2'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux AppStream (v. 10)', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:6'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 6', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:8'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 8', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:9'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 9', 'defaultStatus': 'affected'}, {'cpes': ['cpe:/o:redhat:enterprise_linux:7'], 'vendor': 'Red Hat', 'product': 'Red Hat Enterprise Linux 7', 'defaultStatus': 'unaffected'}, {'cpes': ['cpe:/a:redhat:openshift:4'], 'vendor': 'Red Hat', 'product': 'Red Hat OpenShift Container Platform 4', 'defaultStatus': 'unaffected'}]
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-125
    Added Reference https://access.redhat.com/errata/RHSA-2026:19158
    Added Reference https://access.redhat.com/security/cve/CVE-2026-5172
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2458521
    Added Reference https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5172.json
  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'dnsmasq', 'product': 'dnsmasq', 'versions': [{'status': 'affected', 'version': '0', 'lessThan': '2.92rel2', 'versionType': 'custom'}]}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-5172', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-05-13T12:47:52.137124Z'}
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    May. 13, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
  • CVE Modified by [email protected]

    May. 11, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/pi-hole/FTL/releases/tag/v6.6.2
  • CVE Modified by [email protected]

    May. 11, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/NixOS/nixpkgs/pull/519082
    Added Reference https://github.com/NixOS/nixpkgs/pull/519093
    Added Reference https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2026q2/018471.html
    Added Reference https://thekelleys.org.uk/dnsmasq/CVE/
    Removed Reference https://thekelleys.org.uk/dnsmasq/
  • New CVE Received by [email protected]

    May. 11, 2026

    Action Type Old Value New Value
    Added Description A buffer overflow in dnsmasq’s extract_addresses() function allows an attacker to trigger a heap out-of-bounds read and crash by exploiting a malformed DNS response, enabling extract_name() to advance the pointer past the record’s end.
    Added Reference https://thekelleys.org.uk/dnsmasq/
    Added Reference https://www.kb.cert.org/vuls/id/471747
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.